//
//  C_CarefullyChosenCollectionReusableView.m
//  音悦咖
//
//  Created by Best on 15/7/15.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "C_CarefullyChosenCollectionReusableView.h"
#import "BaseHeader.h"

@implementation C_CarefullyChosenCollectionReusableView


- (void)dealloc
{
    [_imageView release];
    [_titleLabel release];
    [super dealloc];
}

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self create];
    }
    return self;
}

- (instancetype)init
{
    self = [super init];
    if (self) {
        [self create];
    }
    return self;
}


+ (C_CarefullyChosenCollectionReusableView *)shareInstrance
{
    static C_CarefullyChosenCollectionReusableView *share = nil;
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        
        share = [[C_CarefullyChosenCollectionReusableView alloc] init];
    });
    return share;
}

- (void)create;
{
    self.imageView = [[UIImageView alloc] init];
    [self addSubview:self.imageView];
    self.imageView.frame = CGRectMake(10, 5, 40, 40);
    self.imageView.layer.cornerRadius = 20;
    self.clipsToBounds = YES;
    [_imageView release];
    
    
    self.titleLabel = [[UILabel alloc] init];
    self.titleLabel.frame = CGRectMake(60, self.frame.size.height - 40, 100, 40);
    [self addSubview:self.titleLabel];
    self.titleLabel.textColor = WHITE;
    self.titleLabel.font = [UIFont systemFontOfSize:20];
    [_titleLabel release];
   
    
    
}



@end
